<?php

define('ACC',true);
require_once('../include/init.php');

$list = new goodModel();

$cat = new catModel();
$data = $cat->getlist(0,0);

$catId = isset($_GET['goods_id'])?$_GET['goods_id']:'';
$edit = [];
if($catId){
    $edit = $list->getOneGoods($catId);
}
//print_r($edit);

//     $getData = $_POST;
// print_r($getData);
// $data = array();
// $data['goods_name'] = $getData['goods_name'];
// $data['goods_sn'] = $getData['goods_sn'];
// $data['marker_price'] = $getData['marker_price'];

// print_r($list->add('goods',$data));

// print_r($list->getall());

require_once('../view/admin/templates/goodsedit.html');

?>